package com.zhaohanlin.start;

import org.junit.Test;

/**
 * @author zhaohanlin
 */

public class FieldAndMethodTest {
    private void method(int num, int[] arr) {
        num =1000;
        arr[0] = 1000;
    }

    @Test
    public void passParam() {
        int num = 10;
        int[] arr = {1, 2};
        method(num, arr);
        System.out.println(num);
        System.out.println(arr[0]);
    }
}
